package by.grsu.crs.model;

public class User {
	private int id;
	private String email;
	private String password;
	private ConfidentialData confidentialData;
	private Role role;
	
	public enum Role {
		CLIENT, MODERATOR, ADMINISTRATOR
	}
	
	public User(int id, String email, String password, ConfidentialData confidentialData, Role role) {
		super();
		this.id = id;
		this.email = email;
		this.password = password;
		this.setConfidentialData(confidentialData);
		this.setRole(role);
	}
	
	public User(String email, String password, ConfidentialData confidentialData, Role role) {
		super();
		this.email = email;
		this.password = password;
		this.setConfidentialData(confidentialData);
		this.setRole(role);
	}

	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public ConfidentialData getConfidentialData() {
		return confidentialData;
	}

	public void setConfidentialData(ConfidentialData confidentialData) {
		this.confidentialData = confidentialData;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
}